import request from "@/utils/request";

// 查询隐患列表
export function getWarnList(query, data) {
  return request({
    url: "/system/task/selectWarnList",
    method: "post",
    params: query,
    data,
  });
}

//处置任务操作
export function updateTaskDisposal(data) {
  return request({
    url: "/system/disposal/updateTaskDisposal",
    method: "post",
    data,
  });
}

// 查询隐患列表状态数据
export function WarnDisposalCount(query, data) {
  return request({
    url: "/system/task/getWarnDisposalCount",
    method: "post",
    params: query,
    data,
  });
}
